import { Component } from '@angular/core';
import {GlobalAjaxService} from './services/global-ajax.service';

@Component({
  selector: 'app-root',
  templateUrl: './app.component.html',
  styleUrls: ['./app.component.css']
})
export class AppComponent {
  title = 'xylo-blog-portal';
  public isLodingData: Array<number>;
  constructor(
    public globalAjaxService: GlobalAjaxService
  ) {
    this.isLodingData = this.globalAjaxService.isLoadingData;
  }

  public stopEvent(e): void {
    e.stopPropagation();
    e.preventDefault();
    return;
  }
}
